package com.yimils.core.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.yimils.core.sys.entity.ResourceEntity;
import com.yimils.core.sys.po.ResourceDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourceMapper extends BaseMapper<ResourceEntity> {
    List<ResourceDo> getResourceByParentId(@Param("parentId") Long parentId);
    List<ResourceDo> getResourceEndPoint(@Param("parentId") Long ParentId, @Param("midName") String midName);
    List<ResourceDo> getResourceGroupByParentId(@Param("parentId") Long parentId);
    List<ResourceDo> getResourceByGroupId(@Param("groupId") Long groupId);

    List<ResourceEntity> getDirByRoleId(@Param("roleId") Long roleId);
    List<ResourceEntity> getMenuByRoleId(@Param("parentId") Long parentId, @Param("roleId") Long roleId);
    List<ResourceEntity> getPermByRoleId(@Param("parentId") Long parentId, @Param("roleId")Long roleId);
}
